home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch18 / rtrace / chem2scn.bat < prev    next >
DOS Batch File  |  1994-01-05  |  332b  |  16 lines

  1. @echo off
  2. set name=%0
  3. if "%1" == "" goto params
  4. if not "%2" == "" goto params
  5. if not exist %1 goto error1
  6. sed.exe "1,$s/[(),]/ /g" <%1|sort.exe|gawk.exe -f chem2scn.awk|sort.exe
  7. goto end
  8. :params
  9. echo %name%: usage is "%name% {chem_file} [>scn_file]"
  10. goto end
  11. :error1
  12. echo %name%: %1 not found
  13. goto end
  14. :end
  15. set name=
  16.